package com.campus.commons.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author Rin
 * @since 2020-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Discuss对象", description="评论表")
public class Discuss implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "评论内容")
    @TableField("discussContent")
    private String discusscontent;

    @ApiModelProperty(value = "评论人Id")
    @TableField("userId")
    private Integer userid;

    @ApiModelProperty(value = "问题Id")
    @TableField("questionId")
    private Integer questionid;

    @ApiModelProperty(value = "发表时间")
    @TableField("createDate")
    private Date createdate;

    @ApiModelProperty(value = "点赞数")
    @TableField("listAmount")
    private Integer listamount;


}
